package com.cmas.platform.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.aidex.common.core.domain.BasePlusEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 平台配置对象 platform_config
 *
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-15
 */
@Data
public class PlatformConfig extends BasePlusEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 键
     */
    @Excel(name = "键")
    @LogField
    @FieldRemark(name = "键", field = "key")
    @TableField("`key`")
    private String key;

    /**
     * 字符串值
     */
    @Excel(name = "字符串值")
    @LogField
    @FieldRemark(name = "字符串值", field = "valueString")
    private String valueString;

    /**
     * 富文本值
     */
    @Excel(name = "富文本值")
    @LogField
    @FieldRemark(name = "富文本值", field = "valueRich")
    private String valueRich;

    /**
     * 说明
     */
    @Excel(name = "说明")
    @LogField
    @FieldRemark(name = "说明", field = "explain")
    @TableField("`explain`")
    private String explain;

    /**
     * 状态
     */
    @Excel(name = "状态", dictType = "platform_action_status")
    @LogField
    @FieldRemark(name = "状态", field = "status")
    @TableField(value = "status", fill = FieldFill.INSERT)
    private String status;

    /**
     * 类型
     */
    @Excel(name = "类型")
    @LogField
    @FieldRemark(name = "类型", field = "type")
    private String type;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("key", getKey())
                .append("valueString", getValueString())
                .append("valueRich", getValueRich())
                .append("explain", getExplain())
                .append("type", getType())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("id", getId())
                .append("createBy", getCreateBy())
                .append("createDept", getCreateDept())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("updateIp", getUpdateIp())
                .append("version", getVersion())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
